package email.entity;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class AuthenticatorSMTP extends Authenticator {
    private String emailUsername; // specify your email id here (sender's email id) ex: "Java.Mail.CA@gmail.com"
    private String emailPassword; // specify your password here
    
    
    public AuthenticatorSMTP(String emailUsername, String emailPassword) {
		super();
		this.emailUsername = emailUsername;
		this.emailPassword = emailPassword;
	}
    
	@Override
    public PasswordAuthentication getPasswordAuthentication() {
        return new PasswordAuthentication(this.emailUsername, this.emailPassword);
    }

}
